package com.gy.ai.agent.listener;


import com.gy.ai.agent.client.BaseReqClient;

public interface ReqClientListener {
    /**
     * 请求开始
     *
     * @param client
     */
    void onStart(BaseReqClient client);

    /**
     * 请求消息
     *
     * @param client
     * @param response
     */
    void onMessage(BaseReqClient client, String response);

    /**
     * 请求结束
     *
     * @param client
     */
    void onStop(BaseReqClient client);

    /**
     * 请求失败
     *
     * @param client
     * @param throwable
     */
    void onFailure(BaseReqClient client, Throwable throwable);
}
